package io.gitee.zhangbinhub.acp.boot.ftp.aot

import io.gitee.zhangbinhub.acp.core.ftp.user.UserFactory
import org.springframework.aot.hint.MemberCategory
import org.springframework.aot.hint.RuntimeHints
import org.springframework.aot.hint.RuntimeHintsRegistrar

class AcpFtpRuntimeHints : RuntimeHintsRegistrar {
    override fun registerHints(hints: RuntimeHints, classLoader: ClassLoader?) {
        // Register reflection
        hints.reflection().registerType(UserFactory::class.java, MemberCategory.INVOKE_DECLARED_METHODS)
    }
}